using UnityEngine;

public class DailyPrizeLoader : MonoBehaviour
{
	private void Recheck()
	{
		MainNavigationManager mainNavigationManager = NavigationManager.instance as MainNavigationManager;
		if (GGPlayerSettings.instance.walletManager.isDailyCoinsActive() && mainNavigationManager.loadingOver && !mainNavigationManager.ContainsLayer(mainNavigationManager.dailyPrize.gameObject))
		{
			mainNavigationManager.Push(mainNavigationManager.dailyPrize.gameObject);
		}
	}

	private void OnApplicationPause(bool paused)
	{
		if (!paused)
		{
			Debug.Log("!!!Checking application pause");
			Recheck();
		}
	}
}
